package com.example.demo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 主键管理表;
 * </p>
 *
 * @author yuch
 * @since 2020-08-20
 */
@ApiModel(value="SysbasePrimaryKey对象", description="主键管理表")
public class SysbasePrimaryKey implements Serializable {

    private static final long serialVersionUID=1L;
    @ApiModelProperty(value = "id")
    private Long sysbasePrimaryKeyId;

    @ApiModelProperty(value = "实体类名称")
    private String entityName;

    @ApiModelProperty(value = "当前值")
    private Long currentValue;

    @ApiModelProperty(value = "锁定时间 乐观锁")
    private String lockTime;

    @ApiModelProperty(value = "id数组大小")
    private int size;

    @Override
    public String toString() {
        return "SysbasePrimaryKey{" +
                "sysbasePrimaryKeyId=" + sysbasePrimaryKeyId +
                ", entityName='" + entityName + '\'' +
                ", currentValue=" + currentValue +
                ", lockTime='" + lockTime + '\'' +
                ", idSize=" + size +
                '}';
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getLockTime() {
        return lockTime;
    }

    public void setLockTime(String lockTime) {
        this.lockTime = lockTime;
    }

    public Long getSysbasePrimaryKeyId() {
        return sysbasePrimaryKeyId;
    }

    public void setSysbasePrimaryKeyId(Long sysbasePrimaryKeyId) {
        this.sysbasePrimaryKeyId = sysbasePrimaryKeyId;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public Long getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(Long currentValue) {
        this.currentValue = currentValue;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

}
